#include<stdio.h>

int main()
{
	char originalString[100];
	printf("Please input original string:");
	fgets(originalString,100,stdin);
	
	char substituteString[100];
	printf("Please input substitute string:");
	fgets(substituteString,100,stdin);
	
	int position;
	printf("Please input substitute	position:");
	scanf("%d",&position);
	int i;
	for(i=0;substituteString[i]!='\0';i++)
	{
		originalString[position+i]=substituteString[i];
	}
	printf("The final string:");
	puts(originalString);
	return 0;
}
